package com.bondqin.demo.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.bondqin.demo.action.DailyRecordAction;
import com.bondqin.demo.vo.ResultModel;

@Controller
@RequestMapping(value="/dailyRecord")
public class DailyRecordController extends BaseController {
	@Autowired
	private DailyRecordAction dailyRecordAction;

	/**
	 * @param number
	 * @param size	
	 * @param model		
	 * 
	 */
	@RequestMapping(value="modify.do")
	public void modify(@RequestParam(value="id") Integer id,
			Map<String, Object> model) {
		ResultModel result = dailyRecordAction.listOne(id);
		model.putAll(result.toMap());
	}

}
